﻿<UserControl x:Class="DiscoveryLogic.Analytics.Modules.Entities.PersonListView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="Auto" Width="Auto" VerticalAlignment="Stretch">
	<Border CornerRadius="10,10,0,0" BorderBrush="#3E606F" Background="#D1DBBD" 
			BorderThickness="2" Padding="7">
		<ListView 
            x:Name="lvPersons" ItemsSource="{Binding}" 
            SelectionChanged="lvPersons_SelectionChanged"
            VerticalAlignment="Stretch">
			<ListView.View>
				<GridView>
					<GridViewColumn Header="First name"
									DisplayMemberBinding="{Binding FirstName}"/>
					<GridViewColumn Header="Last name"
									DisplayMemberBinding="{Binding LastName}"/>
					<GridViewColumn Header="SSN"
									DisplayMemberBinding="{Binding SSN}"/>
					<GridViewColumn Header="Email"
									DisplayMemberBinding="{Binding Email}"/>
					<GridViewColumn Header="Telephone"
									DisplayMemberBinding="{Binding Telephone}"/>
					<GridViewColumn Header="Birth date"
									DisplayMemberBinding="{Binding DOB}"/>
					<GridViewColumn Header="Title"
									DisplayMemberBinding="{Binding Title}"/>
					<GridViewColumn Header="Degree"
									DisplayMemberBinding="{Binding Degree}"/>
				</GridView>
			</ListView.View>
		</ListView>
	</Border>
</UserControl>
